package org.example.chat.common;

/**
 * @author : hmxchen
 * @program : modules-api
 * @description :
 * @create : 2022-04-26 11:59
 **/
public enum MessageType {
    LOGIN_SUCCESS("1"),
    LOGIN_FAILED("2"),
    ONLINE_USERS("3"),
    PRIVATE_CHAT("4"),
    PUBLIC_CHAT("5"),
    SEND_FILE("6"),
    EXIT_SYSTEM("7")
            ;

    private String code;

    public String getCode() {
        return code;
    }

    MessageType(String code) {
        this.code = code;
    }

}
